#include "progressarcplugin.h"
#include "progressarc.h"

#include <QtPlugin>

progressArcPlugin::progressArcPlugin(QObject *parent)
    : QObject(parent)
{

}

bool progressArcPlugin::isContainer() const
{
    return false;
}

bool progressArcPlugin::isInitialized() const
{
    return m_initialized;
}

QIcon progressArcPlugin::icon() const
{
    return QIcon(QLatin1String(":/res/progressArc.png"));
}

QString progressArcPlugin::domXml() const
{
    return QLatin1String(R"(<widget class="progressArc" name="progressArc">
</widget>)");
}

QString progressArcPlugin::group() const
{
    return QLatin1String("");
}

QString progressArcPlugin::includeFile() const
{
    return QLatin1String("progressarc.h");
}

QString progressArcPlugin::name() const
{
    return QLatin1String("progressArc");
}

QString progressArcPlugin::toolTip() const
{
    return QLatin1String("");
}

QString progressArcPlugin::whatsThis() const
{
    return QLatin1String("");
}

QWidget *progressArcPlugin::createWidget(QWidget *parent)
{
    return new progressArc(parent);
}

void progressArcPlugin::initialize(QDesignerFormEditorInterface *core)
{
    if (m_initialized)
        return;

    // Add extension registrations, etc. here

    m_initialized = true;
}
